package com.hopu.service.Impl;

import com.hopu.mapper.ZhichuMapper;
import com.hopu.pojo.Zhichu;
import com.hopu.service.ZhichuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ZhichuServiceImpl implements ZhichuService {
   @Autowired
   private ZhichuMapper zhichuMapper;


    @Override
    public List<Zhichu> findAllZhichu() {
        return zhichuMapper.findAllZhichu();
    }

    @Override
    public int addZhichu(int eid, Float zmoney, String ztm, long ztime, String zremark) {
        return zhichuMapper.addZhichu(eid,zmoney,ztm,ztime,zremark);
    }

    @Override
    public Zhichu findZhichuByZid(int zid) {
        return zhichuMapper.findZhichuByZid(zid);
    }

    @Override
    public int uppZhichu(Zhichu zhichu) {
        return zhichuMapper.uppZhichu(zhichu);
    }
}
